package com.lcj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lcj.dto.ArticleCondition;
import com.lcj.entity.Articles;
import com.lcj.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Articles> {
    public ArticleVo getArticleInfo(@Param("article_id") Long articleId);
    public List<ArticleVo> getAllArticles(ArticleCondition articleCondition);
    public int getArticleCount( ArticleCondition articleCondition);

    List<ArticleNBVo> getArticlesByFeed(@Param("login_id") Long id);

    void createComments(@Param("aid") Long aid,@Param("body") String body, @Param("login_id") Long loginId);
}
